package cn.lanqiao.system.mapper;

import cn.lanqiao.common.entity.Comment;
import cn.lanqiao.common.vo.CommentVo;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);
    //查看所有评论
    List<CommentVo> showAllComment(Integer id);

   Integer addComemnt(Comment comment) ;

    Integer  deleteComemnt(Comment comment);
}